package psn.qiuyiping.autocad.dxffile;

@Dxf0Name("BLOCK")
public class DxfBlock extends DefaultDxf0 {
    @DxfCode(10)
    double[]  base;
    @DxfCode(4)
    String    desc;

    @DxfCode(70)
    int       flag;
    @DxfCode(340)
    DxfHandle layout;
    @DxfCode(3)
    String    name;
    @DxfCode(1)
    String    path;
    public boolean isAnonymous() {
        return (flag & 1) > 0;
    }

    public boolean isXref() {
        return (flag & 4) > 0;
    }

    public boolean isXrefDefined() {
        return (flag & 16) > 0;
    }

    public boolean isXrefOverLap() {
        return (flag & 8) > 0;
    }

    @Override
    public void afterBlockEnd(DxfProcessContext context) {
        super.afterBlockEnd(context);
        System.out.println("blockame:"+name);
    }
}
